﻿@model WebApplication.Models.ReportParameter

<script type="text/javascript">
    function validate(evt) {
        var theEvent = evt || window.event;
        var key = theEvent.keyCode || theEvent.which;
        key = String.fromCharCode(key);
        var regex = /[0-9]|\./;
        if (!regex.test(key)) {
            theEvent.returnValue = false;
            if (theEvent.preventDefault) theEvent.preventDefault();
        }
    }
</script>

<div class="well">
     @Model.ParameterSettingName : <input type="text" name="@Model.Name" onkeypress='validate(event)'/>
</div>